<template>
	<view class="home-box">
		<!-- #ifdef MP-WEIXIN -->
		<home-wxChart :tabHeight="tabHeight"></home-wxChart>
		<!-- #endif -->
		<!-- #ifdef MP-ALIPAY -->
		<home-zfb :tabHeight="tabHeight"></home-zfb>
		<!-- #endif -->
	</view>
</template>

<script setup>
	import {
		ref,
		onMounted,
		onBeforeMount
	} from 'vue'
	const tabHeight = ref(0)
	onBeforeMount(() => {
		uni.getSystemInfo({
			success: (res) => {
				// #ifdef MP-ALIPAY
				tabHeight.value = res.statusBarHeight + res.titleBarHeight
				// #endif
			}
		})
		// #ifdef MP-ALIPAY
		uni.setNavigationBarTitle({
			title: '回收汪社群'
		})
		// #endif
	})
</script>

<style lang="scss" scoped>
	.home-box {
		height: 100%;
	}
</style>